package com.pacific.sign.biz.wrapper.aop;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;

public class ThreadIdConverter extends ClassicConverter {

    /** 
     * @see ch.qos.logback.core.pattern.Converter#convert(Object)
     */
    @Override
    public String convert(ILoggingEvent event) {
        try {
            return ThreadLocalUtils.getLogPrefix();
        } catch (Exception e) {
            return "";
        }
    }

}
